<!--  -->
<script setup>
defineProps(['iconName'])
</script>

<template>
  <div class="icon-container">
    <div class="icon" :style="`mask-image:url(/static/svg/${iconName}.svg)`"></div>
    <span><slot></slot></span>
  </div>
</template>

<style scoped lang="scss">

.icon-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.icon {
  mask-repeat: no-repeat;
  mask-position: center;
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: var(--icon-bgc);
}
</style>
